{template header.html}
<style>
.ds-review .commstar {
    width: 70px  !important;
    height: 14px;
    background: url({THEME_PATH}comment/images/star.png) 0 -14px repeat-x;
    position: relative;
    display: inline-block !important;
    overflow: hidden !important;
    zoom: 1;
}
.ds-review .commstar .active {
    background:url({THEME_PATH}comment/images/star.png) left top repeat-x !important
}
.ds-review .commstar a {
    width:20%;
    position:absolute;
    top:0;
    left:0;
    display:inline-block;
    height:20px
}
.ds-review .commstar .star1 {
    width:20%;
    z-index:9
}
.ds-review .commstar .star2 {
    width:40%;
    z-index:8
}
.ds-review .commstar .star3 {
    width:60%;
    z-index:7
}
.ds-review .commstar .star4 {
    width:80%;
    z-index:6
}
.ds-review .commstar .star5 {
    width:100%;
    z-index:5
}
</style>
<script type="text/javascript">
$(function() {
	{if $error}
	art.dialog.tips('<font color=red>{$error.msg}</font>', 3);
	d_tips('{$error.error}', 0);
	{/if}
	
});
</script>
<form action="" method="post" name="myform" id="myform">
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}
	</div>
	<div class="bk10"></div>
    <div class="table-list col-tab">
        <ul class="tabBut cu-li">
            <li class="on">{fc_lang('内容维护')}</li>
        </ul>
        <div class="contentList pad-10 dr_table">
        <table width="100%" class="table_form">
            <tr>
                <th width="150">{fc_lang('作者')}： </th>
                <td>{if $data.uid}<a href="javascript:;" onclick="dr_dialog_member('{$data.uid}')">{$data.author}</a>{else}{fc_lang('游客')}{/if}</td>
            </tr>
            <tr>
                <th>{fc_lang('时间段')}： </th>
                <td>{dr_date($data.inputtime, NULL, 'red')}
                </td>
            </tr>
            <tr>
                <th>{fc_lang('地区')}： </th>
                <td><a href="http://www.baidu.com/baidu?wd={$data.inputip}" target="_blank">{$ci->dip->address($data.inputip)}</a>
                </td>
            </tr>
            {if $is_review}
            {loop $review.option $i $t}
            {if $t.use}
            <tr>
                <th>{$t.name}：</th>
                <td class="ds-review">
                    <span class="commstar">
                        {loop $review.value $ii $v}
                        <a class="star{$ii} {if $data['sort'.$i] == $ii} active{/if}" href="javascript:;" title="{$v.name}">&nbsp;</a>
                        {/loop}
                    </span>
                </td>
            </tr>
            {/if}
            {/loop}
            {/if}
            <tr>
                <th>{fc_lang('评论内容')}： </th>
                <td>
                    <textarea style="height:70px; width:80%" name="post[content]">{$data.content}</textarea>
                </td>
            </tr>
            {$myfield}
            {if !$data.status}
            <tr>
                <th>{fc_lang('状态')}： </th>
                <td>
                    <input type="radio" name="post[status]" value="1" {if $data['status']}checked{/if} />&nbsp;<label>{fc_lang('已审核')}</label>
                    &nbsp;&nbsp;&nbsp;
                    <input type="radio" name="post[status]" value="0" {if !$data['status']}checked{/if} />&nbsp;<label>{fc_lang('未审核')}</label>

                </td>
            </tr>
            {/if}
            <tr>
                <th>{fc_lang('友情提示')}： </th>
                <td style="color:#999">{fc_lang('默认模板是: 核心目录/dayrui/templates/admin/%s.html，自定义模板是%s', 'comment_show', $tpl)}</td>
            </tr>
            <tr>
                <th style="border:none;">&nbsp;</th>
                <td>
                    <button type="submit" class="btn green"> <i class="fa fa-save"></i> {fc_lang('提交')}</button>
                </td>
            </tr>
        </table>
        </div>
    </div>
</div>
</form>
{template footer.html}